package com.shensi.api.pay.pojo.dto;

import com.shensi.api.pay.param.vo.CouponUserVO;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Collections;
import java.util.List;

/**
 * @date 2023/10/17
 */
@Setter
@Getter
public class ReductionAndCouponDTO {

    /**
     * 立减活动优惠金额
     */
    private BigDecimal reductionAmt;
    /**
     * 用户可用优惠卷列表
     */
    private List<CouponUserVO> couponUserList;
//    /**
//     * 优惠金额最大的优惠卷id
//     */
//    private Integer couponUserId;
    /**
     * 优惠金额最大的优惠卷
     */
    private CouponUserVO couponUser;

    /**
     * 优惠卷优惠的金额
     */
    private BigDecimal couponDiscountAmt;

    /**
     * 参与的立减活动id
     */
    private Long activityId;


    public static ReductionAndCouponDTO newEmptyInstance(){
        ReductionAndCouponDTO reductionAndCouponDTO = new ReductionAndCouponDTO();
        reductionAndCouponDTO.setReductionAmt(BigDecimal.ZERO);
        reductionAndCouponDTO.setCouponDiscountAmt(BigDecimal.ZERO);
        reductionAndCouponDTO.setCouponUserList(Collections.emptyList());
        return reductionAndCouponDTO;
    }

}
